import { createApp } from 'vue'
// 导入首页
import App from './App.vue'
// 全局导入windicss样式
import 'virtual:windi.css'
// 注册路由
import router from '@/router'
// 引入element-plus模块
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
/*导入所有的图标组件*/
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const app = createApp(App);
// 注册插件ElementPlus
app.use(ElementPlus)
    // 注册element-plus所有的图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// 注册插件router
app.use(router)
app.mount('#app')